srcdir = .

INFO_SOURCES = ${srcdir}/bashref.texi
INFO_SOURCES_ES = ${srcdir}/bashref.es.texi
POT_FILE = ${srcdir}/bashref.pot
PO_FILE = ${srcdir}/bashref.es.po

html: texi
	texi2html $(INFO_SOURCES_ES)

texi:
	po4a-translate -k 0 -f texinfo -m $(INFO_SOURCES) -p $(PO_FILE) -l $(INFO_SOURCES_ES)

update_pot:
	po4a-gettextize -f texinfo -m $(INFO_SOURCES) -p $(POT_FILE)
